/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-04-15 09:52:54
 * @LastEditors: 小白
 * @LastEditTime: 2022-04-15 09:53:59
 * @FilePath: \vite-admin\src\api\login.ts
 */

import type { ILoginResponse } from './types/common'
import request from '@/utils/request'

export const captchaImage = () => {
  return request({
    method: 'get',
    url: '/captchaApi/captchaImage'
  })
}

export const login = (data:{
    key: string,
    accountNo: string,
    code: string,
    accountPassword: string,
    domain: string
}) => {
  return request<ILoginResponse>({
    url: '/studentSide/stuSideLogin',
    method: 'post',
    data: data
  })
}
